package com.ronz.linkedlist.util;

/**
 * @Description TODO
 * @Author Ronz
 * @Date 2020/12/23 11:34
 * @Version 1.0
 */
public class NodeUtil {

    /**
     * @Description 构造测试数据的链表的方法
     * @Param []
     * @return void
     */
    public static HeroNode getTestList(){
        HeroNode head = new HeroNode(0, "", "");
        // 构造测试数据
        HeroNode heroNode_1 = new HeroNode(1, "宋江", "及时雨");
        HeroNode heroNode_2 = new HeroNode(2, "卢俊义", "玉麒麟");
        HeroNode heroNode_3 = new HeroNode(3, "公孙胜", "入云龙");
        HeroNode heroNode_4 = new HeroNode(4, "林冲", "豹子头");

        head.next = heroNode_1;
        heroNode_1.next = heroNode_2;
        heroNode_2.next = heroNode_3;
        heroNode_3.next = heroNode_4;
        return head;
    }


    // No5 测试用
    public static HeroNode getNode_1(){
        HeroNode head = new HeroNode(0, "", "");
        // 构造测试数据
        HeroNode heroNode_1 = new HeroNode(1, "宋江", "及时雨");
        HeroNode heroNode_3 = new HeroNode(3, "公孙胜", "入云龙");
        head.next = heroNode_1;
        heroNode_1.next =  heroNode_3;
        return head;
    }

    // No5 测试用
    public static HeroNode getNode_2(){
        HeroNode head = new HeroNode(0, "", "");

        HeroNode heroNode_2 = new HeroNode(2, "卢俊义", "玉麒麟");
        HeroNode heroNode_4 = new HeroNode(4, "林冲", "豹子头");

        head.next = heroNode_2;
        heroNode_2.next = heroNode_4;
        return  head;
    }

}
